package com.example.gpssystem.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.EnableLoadTimeWeaving;

@Configuration
// 移除LoadTimeWeaving配置
// @EnableLoadTimeWeaving(aspectjWeaving = EnableLoadTimeWeaving.AspectJWeaving.ENABLED)
@EnableAspectJAutoProxy(proxyTargetClass = true) // 添加Spring代理配置
public class AspectJConfig {
    // 保留切面Bean注册
    @Bean
    public OperationLogAspect operationLogAspect() {
        return new OperationLogAspect();
    }
}